package com.cjr.ddp.service.impl;

import com.cjr.ddp.dao.TarDao;
import com.cjr.ddp.dao.UserDao;
import com.cjr.ddp.entity.DictTarget;
import com.cjr.ddp.entity.User;
import com.cjr.ddp.service.TarService;
import com.cjr.ddp.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cjr
 * @date Created in 2020-03-05 20:54
 * @description
 * @modified By
 */
@Service
public class TarServiceImpl implements TarService {

    @Autowired
    TarDao tarDao;


    @Override
    public int insertTar(DictTarget dictTarget) {
        return tarDao.insertTar(dictTarget);
    }

    @Override
    public int deleteTarByTarId(int id) {
        return tarDao.deleteTarByTarId(id);
    }

    @Override
    public int updateTarByTarID(DictTarget dictTarget) {
        return tarDao.updateTarByTarID(dictTarget);
    }

    @Override
    public List<DictTarget> selectTarList() {
        return tarDao.selectTarList();
    }

    @Override
    public List<DictTarget> selectTarByTarName(DictTarget dictTarget) {
        return tarDao.selectTarByTarName(dictTarget);
    }
}
